#ifndef __RoundSummaryView_H__
#define __RoundSummaryView_H__

#include "cocos2d.h"

class cocos2d::CCMenuItemImage;

class RoundSummaryView : public cocos2d::CCLayer
{
public:
    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    virtual bool init();  

    // there's no 'id' in cpp, so we recommand to return the exactly class pointer
    static cocos2d::CCScene* scene();

	// implement the "static node()" method manually
	LAYER_CREATE_FUNC(RoundSummaryView);

	void onEnterTransitionDidFinish();

private:
    // a selector callback
    void playGameCallback(CCObject* pSender);

	void onPlayerCallback(CCObject* pSender);

	void updateResults(float delta);

	void onUpdateResultsSucceed(CCObject* param);

	void onUpdateResultsFailed(CCObject* param);

	cocos2d::CCMenuItemImage* mPlayButton;

	cocos2d::CCLabelTTF* mLabelMyName;
	cocos2d::CCLabelTTF* mLabelOpponentName;

	cocos2d::CCLabelTTF* mLabelTitleRound1;
	cocos2d::CCLabelTTF* mLabelTitleRound2;
	cocos2d::CCLabelTTF* mLabelTitleRound3;

	cocos2d::CCLabelTTF* mLabelResult;

	cocos2d::CCLabelTTF* mLabelScoreRound[3];

};

#endif // __HELLOWORLD_SCENE_H__
